<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>多人聊天室</title>
</head>
<body>
<h1>多人聊天室</h1>
<form action="chat" method="post">
    <label for="name">用户名:</label>
    <input type="text" id="name" name="name" required><br>
    <label for="msg">消息:</label>
    <input type="text" id="msg" name="msg" required><br>
    <input type="submit" value="发送">
</form>
<!-- 这里可以添加代码来显示聊天记录 -->
</body>
</html>